package com.cysion.study.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.cysion.study.ktbox.base.BaseAdapter
import com.cysion.study.ktbox.base.BaseViewHolder
import com.cysion.study.R

class ClassPushManageAdapter(mEntities: MutableList<String>, mContext: Context) :
    BaseAdapter<String>(mEntities, mContext) {

    companion object {

        //点击事件
        const val preview = 101
        const val refuse = 102
        const val del = 103
        const val modify = 104
    }

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder<String> {
        return ProMoneyHolder(
            LayoutInflater.from(mContext).inflate(R.layout.item_class_push_list, parent, false)
        )
    }

    class ProMoneyHolder(itemView: View) : BaseViewHolder<String>(itemView) {
        override fun fillData(obj: String, position: Int) {
            itemView?.apply {

                /*itemView.tv_del._setOnClickListener {
                    mOnTypeClickListener?.invoke(obj, position, del)
                } */

            }
        }

    }
}